Skip to content

还款单查询

商户通过还款单查询订单API查询订单状态,完成下一步的业务逻辑。

请求参数类型描述
combine_out_trade_nostring还款单订单号
php
$instance->v3->repayment->combineTransactions->partner->outTradeNo->_combine_out_trade_no_->getAsync([
  'combine_out_trade_no' => 'P20150806125346',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/repayment/combine-transactions/partner/out-trade-no/{combine_out_trade_no}')->getAsync([
  'combine_out_trade_no' => 'P20150806125346',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/repayment/combine-transactions/partner/out-trade-no/{combine_out_trade_no}']->getAsync([
  'combine_out_trade_no' => 'P20150806125346',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->repayment->combineTransactions->partner->outTradeNo->_combine_out_trade_no_->get([
  'combine_out_trade_no' => 'P20150806125346',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/repayment/combine-transactions/partner/out-trade-no/{combine_out_trade_no}')->get([
  'combine_out_trade_no' => 'P20150806125346',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/repayment/combine-transactions/partner/out-trade-no/{combine_out_trade_no}']->get([
  'combine_out_trade_no' => 'P20150806125346',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
combine_appidstring还款服务商APPID
combine_mchidstring还款服务商商户号
combine_out_trade_nostring还款单订单号
combine_transaction_idstring还款单微信支付订单号
combine_payer_infoobject还款支付者信息
openidstring用户服务商标识
sub_ordersobject[]还款明细单信息列表
mchidstring还款单发起商户号
sub_mchidstring子商户号
out_trade_nostring还款明细单订单号
transaction_idstring还款明细单微信支付订单号
trade_typestring交易类型
REPAYMENT 枚举值
trade_statestring交易状态
SUCCESS | NOTPAY | CLOSED 枚举值之一
bank_typestring付款银行
attachstring附加数据
success_timestring支付完成时间
amountobject子单金额信息
total_amountinteger标价金额
currencystring标价币种
payer_amountinteger现金支付金额
payer_currencystring现金支付币种

参阅 官方文档

Published on the GitHub by TheNorthMemory